package com.bobamrz.frontend;

import java.net.HttpRetryException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.bobamrz.domain.UserDTO;

public class SecurityManager {

	public UserDTO getUser(HttpServletRequest req) {
		UserDTO user = (UserDTO) req.getSession().getAttribute("user");
		if (user != null) {
			return user;
		} else {
			return null;
		}
	}
		
}
